package com.ruoyi.teaching.service;

import java.util.List;
import java.util.Map;

import com.ruoyi.teaching.bo.InterviewMasteryDegreeListBo;
import com.ruoyi.teaching.bo.QueryInterviewMasteryDegreeBo;
import com.ruoyi.teaching.domain.HighInterview;

/**
 * 高频面试题Service接口
 *
 * @author ruoyi
 * @date 2024-04-02
 */
public interface IHighInterviewService
{
    /**
     * 查询高频面试题
     *
     * @param id 高频面试题主键
     * @return 高频面试题
     */
    public HighInterview selectHighInterviewById(Long id);

    /**
     * 查询高频面试题列表
     *
     * @param highInterview 高频面试题
     * @return 高频面试题集合
     */
    public List<HighInterview> selectHighInterviewList(HighInterview highInterview);

    /**
     * 新增高频面试题
     *
     * @param highInterview 高频面试题
     * @return 结果
     */
    public int insertHighInterview(HighInterview highInterview);

    /**
     * 修改高频面试题
     *
     * @param highInterview 高频面试题
     * @return 结果
     */
    public int updateHighInterview(HighInterview highInterview);

    /**
     * 批量删除高频面试题
     *
     * @param ids 需要删除的高频面试题主键集合
     * @return 结果
     */
    public int deleteHighInterviewByIds(Long[] ids);

    /**
     * 删除高频面试题信息
     *
     * @param id 高频面试题主键
     * @return 结果
     */
    public int deleteHighInterviewById(Long id);

    List<InterviewMasteryDegreeListBo> selectInterviewMasteryDegree(QueryInterviewMasteryDegreeBo queryInterviewMasteryDegreeBo);

    Map<String, Object> queryCourseDesignList(Long courseDesignId, String courseDesignContent);

    /**
     * 根据指定关键字查询
     *
     * @param keywords
     * @return
     */
    List<HighInterview> queryRelatedInterviewByKeywords(List<String> keywords);

    /**
     * 全量同步mysql面试题到es中
     */
    void exportEs();

    Integer queryPercentage();
}
